package com.yc.chaoshi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xz
 * @since 2022-08-04
 */
@TableName("ums_roles")
public class UmsRoles implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      /**
     * 描述
     */
      @NotNull(message = "描述不能为空")
      private String description;

      /**
     * 创建时间
     */
      @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8",shape = JsonFormat.Shape.STRING)
      private LocalDateTime createTime;

      /**
     * 账号启用状态0禁止1启用
     */
      private Integer status;

    private Integer adminCount;

      /**
     * 名称
     */
      @NotNull(message = "名称不能为空")
      private String name;

    
    public Integer getId() {
        return id;
    }

      public void setId(Integer id) {
          this.id = id;
      }
    
    public String getDescription() {
        return description;
    }

      public void setDescription(String description) {
          this.description = description;
      }
    
    public LocalDateTime getCreateTime() {
        return createTime;
    }

      public void setCreateTime(LocalDateTime createTime) {
          this.createTime = createTime;
      }
    
    public Integer getStatus() {
        return status;
    }

      public void setStatus(Integer status) {
          this.status = status;
      }
    
    public Integer getAdminCount() {
        return adminCount;
    }

      public void setAdminCount(Integer adminCount) {
          this.adminCount = adminCount;
      }
    
    public String getName() {
        return name;
    }

      public void setName(String name) {
          this.name = name;
      }

    @Override
    public String toString() {
        return "UmsRoles{" +
              "id=" + id +
                  ", description=" + description +
                  ", createTime=" + createTime +
                  ", status=" + status +
                  ", adminCount=" + adminCount +
                  ", name=" + name +
              "}";
    }
}
